package com.atguigu.gulimall.member.controller;


import com.atguigu.common.utils.R;
import com.atguigu.gulimall.member.feign.CouponFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("member/fegin")
public class TestFeignController {

    @Autowired
    private CouponFeignService couponFeignService;



    @RequestMapping("/coupon/list")
    public R couponList(){
        return couponFeignService.list();
    }
}
